﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuartzExt
{
    /// <summary>
    /// 任务信息
    /// </summary>
    public class JobInfo
    {
        /// <summary>
        /// 程序集路径
        /// </summary>
        public string AssemblyFile { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string JobType { get; set; }
        /// <summary>
        /// 任务分组
        /// </summary>
        public string Group { get; set; } = "默认";
        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name { get; set; } = Guid.NewGuid().ToString("N");
        /// <summary>
        /// 触发器类型
        /// </summary>
        public TriggerType TriggerType { get; set; }
        /// <summary>
        /// Cron 表达式，配合 TriggerType.Cron
        /// </summary>
        public string Cron { get; set; }

        /// <summary>
        /// 执行时间间隔，配合 TriggerType.Sample, 默认60秒
        /// </summary>
        public int Interval { get; set; } = 60;
        /// <summary>
        /// 附加的参数
        /// </summary>
        public string AttachParam { get; set; }
    }


}
